<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
   a页面
  <iframe src="http://localhost:1002/b.html" frameborder="0"></iframe>
  <script>
      document.domain='http://localhost:1002';
      var user='我是a来的参数'//设置参数
  </script>
</body>
</html>